<?php
use oxide\plugin\PluginAbstract;
use oxide\http\Context;

class ContentPlusPlugin extends PluginAbstract
{
   public function plug(Context $context) 
   {
      // register for notifications
      $this->register('ModuleContentInfoRenderContentTitle');
      $this->register('AdminContentPostForm');
   }
   
   public function onModuleContentInfoRenderContentTitle($event, $sender = null, $args = null) 
   {
      $content = $args['content'];
        if($content->content_type == 'quote') 
         $content->title = null;
        if($content->content_type == 'embed') {
//           $content->title = null;
        }
   }
   
   
   public function onAdminContentPostForm($event, $sender = null, $args = null)
   {
      $form = $args['form'];
      $content = $args['content'];
      
      
//      if($content->content_type == 'quote') {
//         // print
//         $control = $form->getControl('content');
//         $control->setLabel('Quote');
//      }
   }
   
   
}
